//
//  UIViewController+Alert.h
//  ExhibitionHall
//
//  Created by 王洋 on 2019/6/24.
//  Copyright © 2019 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^ActionBlock)(UIAlertAction * _Nonnull action);

@interface UIViewController (Alert)

@property (nonatomic, copy) ActionBlock block;

- (void)alert:(NSString *)message;

- (void)alert:(NSString *)message
    leftTitle:(NSString *)left
       Action:(void(^)(UIAlertAction * _Nonnull action))leftAction
   rightTitle:(NSString *)right
       Action:(void(^)(UIAlertAction * _Nonnull action))rightAction;


@end

NS_ASSUME_NONNULL_END
